#pragma once

class Texture;

class CTextureHandler : public Singleton<CTextureHandler>
{
	std::map<std::string, Texture*> m_textures;
	Mutex m_textureMutex;
public:
	CTextureHandler() { }
	Texture* GetTexture(std::string szName);
	void Remove(Texture* tex);
};

#define sTexture (*CTextureHandler::GetInstance())